{% macro gen_form(form) %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}

    <form id="search-user-form" action="{{ url_for('auth_bp.event_stat_list') }}" method="post" class="form" role="form">
        {{ my_wtf_macros.form_field(form.nickname, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.date, div_col=4, label_col=4, field_col=7) }}
        <button type="submit" class="btn btn-info"
                id="query-user-btn">
            查询
        </button>
    </form>
{% endmacro %}
